package com.ag.answergames.entity;

import com.ag.answergames.util.IdJsonSerialize;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

@Data
@TableName("stats_user_answer_correct")
public class AnswerCorrectEntity {

    @JsonSerialize(using = IdJsonSerialize.class)
    private Long id;

    @JsonSerialize(using = IdJsonSerialize.class)
    @TableField(value = "user_id")
    private Long userId;

    @TableField(value = "user_name")
    private String userName;

    @TableField(value = "correct_count")
    private Integer correctCount;
}
